package com.erms.lab.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.erms.lab.mapper.SysAttendConferenceMapper;
import com.erms.lab.domain.SysAttendConference;
import com.erms.lab.service.ISysAttendConferenceService;
import com.erms.common.core.text.Convert;

/**
 * 参加大型会议情况Service业务层处理
 * 
 * @author guo
 * @date 2020-03-22
 */
@Service
public class SysAttendConferenceServiceImpl implements ISysAttendConferenceService 
{
    @Autowired
    private SysAttendConferenceMapper sysAttendConferenceMapper;

    /**
     * 查询参加大型会议情况
     * 
     * @param attId 参加大型会议情况ID
     * @return 参加大型会议情况
     */
    @Override
    public SysAttendConference selectSysAttendConferenceById(Long attId)
    {
        return sysAttendConferenceMapper.selectSysAttendConferenceById(attId);
    }

    /**
     * 查询参加大型会议情况列表
     * 
     * @param sysAttendConference 参加大型会议情况
     * @return 参加大型会议情况
     */
    @Override
    public List<SysAttendConference> selectSysAttendConferenceList(SysAttendConference sysAttendConference)
    {
        return sysAttendConferenceMapper.selectSysAttendConferenceList(sysAttendConference);
    }

    /**
     * 新增参加大型会议情况
     * 
     * @param sysAttendConference 参加大型会议情况
     * @return 结果
     */
    @Override
    public int insertSysAttendConference(SysAttendConference sysAttendConference)
    {
        return sysAttendConferenceMapper.insertSysAttendConference(sysAttendConference);
    }

    /**
     * 修改参加大型会议情况
     * 
     * @param sysAttendConference 参加大型会议情况
     * @return 结果
     */
    @Override
    public int updateSysAttendConference(SysAttendConference sysAttendConference)
    {
        return sysAttendConferenceMapper.updateSysAttendConference(sysAttendConference);
    }

    /**
     * 删除参加大型会议情况对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteSysAttendConferenceByIds(String ids)
    {
        return sysAttendConferenceMapper.deleteSysAttendConferenceByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除参加大型会议情况信息
     * 
     * @param attId 参加大型会议情况ID
     * @return 结果
     */
    @Override
    public int deleteSysAttendConferenceById(Long attId)
    {
        return sysAttendConferenceMapper.deleteSysAttendConferenceById(attId);
    }
}
